let HOST_URL = "http://lock.ytke.com/bed/BedApi.ashx?"

module.exports = {
  /** 登录 */
  login(username, password) {
    return HOST_URL + "F=agLogin&code=" + username + "&pwd=" + password
  },
  /** 注册 */
  register(username, password) {
    return HOST_URL + "F=agReg&user=" + username + "&pwd=" + password
  },
  /** 统计查询 */
  agTotal(token, dt1, dt2, hosp, ks, lc) {
    return HOST_URL + "F=agTotal&token=" + token + "&dt1=" + dt1 + "&dt2=" + dt2 + "&hosp=" + hosp + "&dpt=" + ks
  },
  /** 个人中心 */
  agXgzl(token, paramurl) {
    return HOST_URL + "F=agXgzl&token=" + token + "&" + paramurl
  },
  /** 结算明细 */
  agTx(token, paramurl) {
    return HOST_URL + "F=agTx&token=" + token + "&" + paramurl
  },
  /**下载医院和科室 */
  agInfo(token) {
    return HOST_URL + "F=agInfo&token=" + token
  },
  /** 执行SQL */
  dbSqlQuery(sql) {
    return HOST_URL + "F=dbSqlQuery&sql=" + sql
  },
  /** 执行SQL */
  dbSqlExec(sql){
    return HOST_URL + "F=dbSqlExec&sql="+sql
  }
}